﻿<li class="dropdown dropdown-user">
	<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
	<img alt="" class="img-circle" src="/assets/admin/layout/img/avatar6.jpg"/>
	<span class="username username-hide-on-mobile">
	@if(!String.IsNullOrEmpty(WorkContext.CurrentUser.Email) && WorkContext.CurrentUser.Email.IndexOf('&') > 0){@WorkContext.CurrentUser.Email.Split('&')[0]}else{@WorkContext.CurrentUser.UserName} </span>
	<i class="fa fa-angle-down"></i>
	</a>
	<ul class="dropdown-menu dropdown-menu-default">
		<!--<li>
			<a href="extra_profile.html">
			<i class="icon-user"></i> My Profile </a>
		</li>
		<li>
			<a href="page_calendar.html">
			<i class="icon-calendar"></i> My Calendar </a>
		</li>
		<li>
			<a href="inbox.html">
			<i class="icon-envelope-open"></i> My Inbox <span class="badge badge-danger">
			3 </span>
			</a>
		</li>
		<li>
			<a href="page_todo.html">
			<i class="icon-rocket"></i> My Tasks <span class="badge badge-success">
			7 </span>
			</a>
		</li>
		<li class="divider">
		</li>
		<li>
			<a href="extra_lock.html">
			<i class="icon-lock"></i> Lock Screen </a>
		</li>-->		
        <li>
			<a href="@Url.Action("ChangePassword", new { Controller = "Account", Area = "Orchard.Users" })">
			<i class="icon-heart"></i> @T("Change Password").ToString() </a>                   
        </li>
        @if (AuthorizedFor(Orchard.Security.StandardPermissions.AccessAdminPanel)) 
        {
        <li>
			<a href="@Url.Action("Index", new { Area = "Dashboard", Controller = "Admin" })">
			<i class="icon-settings"></i> @T("Dashboard").ToString() </a>                     
        </li>
        }        
        <li>
			<a href="@Url.Action("LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })">
			<i class="icon-key"></i> @T("Sign Out").ToString() </a>            
        </li>
	</ul>
</li>